<?php
 require 'conexion/conexion.php';
  		
	 $IdD= $_GET["id"];
	
	$SQLstr = "DELETE FROM ma_af_finca WHERE MA_V_IdDueho='$IdD'";
    if (!$conectarBD->query($SQLstr))
    {
        echo " Problemas al relizar el delete: (" . $conectarBD->errno . ") " . $conectarBD->error;
    }
	
	$SQLstr1 = "DELETE FROM ma_af_dueho WHERE MA_V_IdDueho='$IdD'";
    if (!$conectarBD->query($SQLstr1))
    {
        echo " Problemas al relizar el delete 2: (" . $conectarBD->errno . ") " . $conectarBD->error;
    }

 
    $conectarBD->close();
	
header("location:../vista/Ad-Finca/MA_gestFinca.php");
return;
?>
